/*
 * @Author       : NaN 353362604@qq.com
 * @Date         : 2023-05-04 09:13:36
 * @LastEditTime : 2023-08-24 14:48:33
 * @LastEditors  : NaN 353362604@qq.com
 * @FilePath     : \AdminStration\src\Common\Router\MenuNav\Common\common.jsx
 * @Description  :
 */
import { Select } from 'antd'

const { hostname } = window.location
// 排序列表
const SearchSort = ({ value, onChange, options }) => {
    const SearchList = {
        Api: [
            { label: '组织机构-正序', value: 'OOrganizationName-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '人员类型-正序', value: 'OPersonTypeName-asc' },
            { label: '人员类型-倒序', value: 'OPersonTypeName-desc' },
            { label: '材料类型-正序', value: 'OPersonName-asc' },
            { label: '材料类型-倒序', value: 'OPersonName-desc' },
        ],
        EngineeringListOrganization: [
            { label: '组织机构-正序', value: 'OOrganizationName-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '清单序号-正序', value: 'OSortId-asc' },
            { label: '清单序号-倒序', value: 'OSortId-desc' },
            { label: '清单名称-正序', value: 'OEngineeringListName-asc' },
            { label: '清单名称-倒序', value: 'OEngineeringListName-desc' },
            { label: '创建时间-正序', value: 'OCreateTime-asc' },
            { label: '创建时间-倒序', value: 'OCreateTime-desc' },
        ],
        EngineeringListYearPlan: [
            { label: '组织机构-正序', value: 'OOrganizationName-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '清单序号-正序', value: 'OSortId-asc' },
            { label: '清单序号-倒序', value: 'OSortId-desc' },
            { label: '清单名称-正序', value: 'OEngineeringListName-asc' },
            { label: '清单名称-倒序', value: 'OEngineeringListName-desc' },
            { label: '年份-正序', value: 'OYear-asc' },
            { label: '年份-倒序', value: 'OYear-desc' },
        ],
        EngineeringListMonthPlan: [
            { label: '组织机构-正序', value: 'OOrganizationName-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '清单序号-正序', value: 'OSortId-asc' },
            { label: '清单序号-倒序', value: 'OSortId-desc' },
            { label: '清单名称-正序', value: 'OEngineeringListName-asc' },
            { label: '清单名称-倒序', value: 'OEngineeringListName-desc' },
            { label: '年份-正序', value: 'OYear-asc' },
            { label: '年份-倒序', value: 'OYear-desc' },
        ],
        EngineeringListDateStat: [
            { label: '组织机构-正序', value: 'OOrganizationName-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '清单序号-正序', value: 'OSortId-asc' },
            { label: '清单序号-倒序', value: 'OSortId-desc' },
            { label: '清单名称-正序', value: 'OEngineeringListName-asc' },
            { label: '清单名称-倒序', value: 'OEngineeringListName-desc' },
            { label: '统计日期-正序', value: 'OStatDate-asc' },
            { label: '统计日期-倒序', value: 'OStatDate-desc' },
        ],
        Security: [
            { label: '组织机构-正序', value: 'OOrganizationName-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '巡检名称-正序', value: 'OTableName-asc' },
            { label: '巡检名称-倒序', value: 'OTableName-desc' },
            { label: '巡检类型-正序', value: 'OSecurityProblemTypeName-asc' },
            { label: '巡检类型-倒序', value: 'OSecurityProblemTypeName-desc' },
            { label: '巡检状态-正序', value: 'OAuditStatus-asc' },
            { label: '巡检状态-倒序', value: 'OAuditStatus-desc' },
            { label: '巡检日期-正序', value: 'OSecurityDate-asc' },
            { label: '巡检日期-倒序', value: 'OSecurityDate-desc' },
        ],
        Person: [
            { label: '组织机构-正序', value: 'OOrganizationName-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '人员类型-正序', value: 'OPersonTypeName-asc' },
            { label: '人员类型-倒序', value: 'OPersonTypeName-desc' },
            { label: '人员姓名-正序', value: 'OPersonName-asc' },
            { label: '人员姓名-倒序', value: 'OPersonName-desc' },
            { label: '是否党员-正序', value: 'IsPartyMember-asc' },
            { label: '是否党员-倒序', value: 'IsPartyMember-desc' },
        ],
        MaterialBatch: [
            { label: '组织机构-正序', value: 'OOrganizationName-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '供应商名称-正序', value: 'OMaterialFactoryName-asc' },
            { label: '供应商名称-倒序', value: 'OMaterialFactoryName-desc' },
            { label: '材料类型-正序', value: 'OMaterialTypeName-asc' },
            { label: '材料类型-倒序', value: 'OMaterialTypeName-desc' },
            { label: '材料名称-正序', value: 'OMaterialName-asc' },
            { label: '材料名称-倒序', value: 'OMaterialName-desc' },
            { label: '进场日期-正序', value: 'OEntryTime-asc' },
            { label: '进场日期-倒序', value: 'OEntryTime-desc' },
        ],
        MaterialTrace: [
            { label: '组织机构-正序', value: 'OOrganizationName-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '供应商名称-正序', value: 'OMaterialFactoryName-asc' },
            { label: '供应商名称-倒序', value: 'OMaterialFactoryName-desc' },
            { label: '材料类型-正序', value: 'OMaterialTypeName-asc' },
            { label: '材料类型-倒序', value: 'OMaterialTypeName-desc' },
            { label: '材料名称-正序', value: 'OMaterialName-asc' },
            { label: '材料名称-倒序', value: 'OMaterialName-desc' },
            { label: '使用日期-正序', value: 'OTraceTime-asc' },
            { label: '使用日期-倒序', value: 'OTraceTime-desc' },
        ],
        Machine: [
            { label: '组织机构-正序', value: 'OOrganizationName-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '材料类型-正序', value: 'OMachineTypeName-asc' },
            { label: '材料类型-倒序', value: 'OMachineTypeName-desc' },
            { label: '进场日期-正序', value: 'OEntryTime-asc' },
            { label: '进场日期-倒序', value: 'OEntryTime-desc' },
        ],
        Video: [
            { label: '组织机构-正序', value: 'OOrganizationName-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '视频名称-正序', value: 'OTableName-asc' },
            { label: '视频名称-倒序', value: 'OTableName-desc' },
            { label: '拍摄日期-正序', value: 'OVideoDate-asc' },
            { label: '拍摄日期-倒序', value: 'OVideoDate-desc' },
        ],
        Camera: [
            { label: '组织机构-正序', value: 'OOrganizationName-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '类型-正序', value: 'OCameraTypeName-asc' },
            { label: '类型-倒序', value: 'OCameraTypeName-desc' },
            { label: '位置-正序', value: 'OCameraPositionName-asc' },
            { label: '位置-倒序', value: 'OCameraPositionName-desc' },
            { label: '名称-正序', value: 'OTableName-asc' },
            { label: '名称-倒序', value: 'OTableName-desc' },
            { label: '序列号-正序', value: 'ODeviceSerial-asc' },
            { label: '序列号-倒序', value: 'ODeviceSerial-desc' },
            { label: '排序-正序', value: 'OSortId-asc' },
            { label: '排序-倒序', value: 'OSortId-desc' },
        ],
        GetAlarmLists: [
            { label: '组织机构-正序', value: 'OOrganizationName-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '摄像头名称-正序', value: 'OTableName-asc' },
            { label: '摄像头名称-倒序', value: 'OTableName-desc' },
            { label: '告警时间-正序', value: 'OAlarmTime-asc' },
            { label: '告警时间-倒序', value: 'OAlarmTime-desc' },
            { label: '序列号-正序', value: 'ODeviceSerial-asc' },
            { label: '序列号-倒序', value: 'ODeviceSerial-desc' },
            { label: '通道号-正序', value: 'OChannelNo-asc' },
            { label: '通道号-倒序', value: 'OChannelNo-desc' },
            { label: '状态-正序', value: 'OStatus-asc' },
            { label: '状态-倒序', value: 'OStatus-desc' },
        ],
        Sample: [
            { label: '组织机构-正序', value: 'OOrganizationUuid-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '样品名称-正序', value: 'OTableName-asc' },
            { label: '样品名称-倒序', value: 'OTableName-desc' },
            { label: '送检日期-正序', value: 'OSendTime-asc' },
            { label: '送检日期-倒序', value: 'OSendTime-desc' },
            { label: '检测状态-正序', value: 'OStatus-asc' },
            { label: '检测状态-倒序', value: 'OStatus-desc' },
            { label: '工程名称-正序', value: 'OEngineeringName-asc' },
            { label: '工程名称-倒序', value: 'OEngineeringName-desc' },
            { label: '委托单位-正序', value: 'OClientOrganization-asc' },
            { label: '委托单位-倒序', value: 'OClientOrganization-desc' },
            { label: '工程部位-正序', value: 'OEngineeringPurpose-asc' },
            { label: '工程部位-倒序', value: 'OEngineeringPurpose-desc' },
            { label: '试验检测室-正序', value: 'OTestRoom-asc' },
            { label: '试验检测室-倒序', value: 'OTestRoom-desc' },
        ],
        LabMarshallStability: [
            { label: '组织机构-正序', value: 'OOrganizationName-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '试验日期-正序', value: 'OTestDate-asc' },
            { label: '试验日期-倒序', value: 'OTestDate-desc' },
            { label: '评定结果-正序', value: 'OResult-asc' },
            { label: '评定结果-倒序', value: 'OResult-desc' },
            { label: '设备编号-正序', value: 'OEquipmentNumber-asc' },
            { label: '设备编号-倒序', value: 'OEquipmentNumber-desc' },
        ],
        LabPenetration: [
            { label: '组织机构-正序', value: 'OOrganizationName-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '试验日期-正序', value: 'OTestDate-asc' },
            { label: '试验日期-倒序', value: 'OTestDate-desc' },
            { label: '评定结果-正序', value: 'OResult-asc' },
            { label: '评定结果-倒序', value: 'OResult-desc' },
            { label: '设备编号-正序', value: 'OEquipmentNumber-asc' },
            { label: '设备编号-倒序', value: 'OEquipmentNumber-desc' },
        ],
        LabDuctility: [
            { label: '组织机构-正序', value: 'OOrganizationName-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '试验日期-正序', value: 'OTestDate-asc' },
            { label: '试验日期-倒序', value: 'OTestDate-desc' },
            { label: '评定结果-正序', value: 'OResult-asc' },
            { label: '评定结果-倒序', value: 'OResult-desc' },
            { label: '设备编号-正序', value: 'OEquipmentNumber-asc' },
            { label: '设备编号-倒序', value: 'OEquipmentNumber-desc' },
        ],
        LabSofteningPoint: [
            { label: '组织机构-正序', value: 'OOrganizationName-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '试验日期-正序', value: 'OTestDate-asc' },
            { label: '试验日期-倒序', value: 'OTestDate-desc' },
            { label: '评定结果-正序', value: 'OResult-asc' },
            { label: '评定结果-倒序', value: 'OResult-desc' },
            { label: '设备编号-正序', value: 'OEquipmentNumber-asc' },
            { label: '设备编号-倒序', value: 'OEquipmentNumber-desc' },
        ],
        LabStressMachine: [
            { label: '组织机构-正序', value: 'OOrganizationName-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '工程名称-正序', value: 'OProjectName-asc' },
            { label: '工程名称-倒序', value: 'OProjectName-desc' },
            { label: '施工部位-正序', value: 'OConstructionSpot-asc' },
            { label: '施工部位-倒序', value: 'OConstructionSpot-desc' },
            { label: '试验类型-正序', value: 'OTestType-asc' },
            { label: '试验类型-倒序', value: 'OTestType-desc' },
            { label: '试验日期-正序', value: 'OTestDate-asc' },
            { label: '试验日期-倒序', value: 'OTestDate-desc' },
            { label: '设计强度-正序', value: 'ODesignStrength-asc' },
            { label: '设计强度-倒序', value: 'ODesignStrength-desc' },
            { label: '评定结果-正序', value: 'OTestEvaluation-asc' },
            { label: '评定结果-倒序', value: 'OTestEvaluation-desc' },
            { label: '设备编号-正序', value: 'OEquipmentNumber-asc' },
            { label: '设备编号-倒序', value: 'OEquipmentNumber-desc' },
        ],
        LabUniversalRebar: [
            { label: '组织机构-正序', value: 'OOrganizationName-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '试验日期-正序', value: 'OTestDate-asc' },
            { label: '试验日期-倒序', value: 'OTestDate-desc' },
            { label: '评定结果-正序', value: 'OResult-asc' },
            { label: '评定结果-倒序', value: 'OResult-desc' },
            { label: '设备编号-正序', value: 'OEquipmentNumber-asc' },
            { label: '设备编号-倒序', value: 'OEquipmentNumber-desc' },
        ],
        LabHumiture: [
            { label: '组织机构-正序', value: 'OOrganizationName-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '试验日期-正序', value: 'ODataCreationTime-asc' },
            { label: '试验日期-倒序', value: 'ODataCreationTime-desc' },
            { label: '设备编号-正序', value: 'OEquipmentNumber-asc' },
            { label: '设备编号-倒序', value: 'OEquipmentNumber-desc' },
        ],
        LabCoverProtector: [
            { label: '组织机构-正序', value: 'OOrganizationName-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '试验日期-正序', value: 'ODetectionTime-asc' },
            { label: '试验日期-倒序', value: 'ODetectionTime-desc' },
            { label: '设备编号-正序', value: 'OEquipmentNumber-asc' },
            { label: '设备编号-倒序', value: 'OEquipmentNumber-desc' },
            { label: '构件名称-正序', value: 'OComponentName-asc' },
            { label: '构件名称-倒序', value: 'OComponentName-desc' },
            { label: '结构物名称-正序', value: 'OStructureName-asc' },
            { label: '结构物名称-倒序', value: 'OStructureName-desc' },
            { label: '结构位置-正序', value: 'OStructuralPosition-asc' },
            { label: '结构位置-倒序', value: 'OStructuralPosition-desc' },
            { label: '设计厚度-正序', value: 'ODesignThickness-asc' },
            { label: '设计厚度-倒序', value: 'ODesignThickness-desc' },
            { label: '评定结果-正序', value: 'OGradingresults-asc' },
            { label: '评定结果-倒序', value: 'OGradingresults-desc' },
        ],
        LabReboundHammer: [
            { label: '组织机构-正序', value: 'OOrganizationName-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '构件名称-正序', value: 'OComponentName-asc' },
            { label: '构件名称-倒序', value: 'OComponentName-desc' },
            { label: '构件编号-正序', value: 'OComponentNumber-asc' },
            { label: '构件编号-倒序', value: 'OComponentNumber-desc' },
            { label: '检测时间-正序', value: 'ODetectionTime-asc' },
            { label: '检测时间-倒序', value: 'ODetectionTime-desc' },
            { label: '砼设计等级-正序', value: 'ODesignGrade-asc' },
            { label: '砼设计等级-倒序', value: 'ODesignGrade-desc' },
            { label: '设备编号-正序', value: 'OEquipmentNumber-asc' },
            { label: '设备编号-倒序', value: 'OEquipmentNumber-desc' },
        ],
        LabPmsTesterCbr: [
            { label: '组织机构-正序', value: 'OOrganizationName-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '试验组号-正序', value: 'OTestNo-asc' },
            { label: '试验组号-倒序', value: 'OTestNo-desc' },
            { label: '试验日期-正序', value: 'OTestDate-asc' },
            { label: '试验日期-倒序', value: 'OTestDate-desc' },
            { label: '设备编号-正序', value: 'OEquipmentNumber-asc' },
            { label: '设备编号-倒序', value: 'OEquipmentNumber-desc' },
            { label: '样品名称-正序', value: 'OSampleName-asc' },
            { label: '样品名称-倒序', value: 'OSampleName-desc' },
            { label: '评定结果-正序', value: 'OResult-asc' },
            { label: '评定结果-倒序', value: 'OResult-desc' },
        ],
        CementMixingStations: [
            { label: '组织机构-正序', value: 'OOrganizationName-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '工程名称-正序', value: 'OProjectName-asc' },
            { label: '工程名称-倒序', value: 'OProjectName-desc' },
            { label: '试验类型-正序', value: 'OPouringPosition-asc' },
            { label: '试验类型-倒序', value: 'OPouringPosition-desc' },
            { label: '出料时间-正序', value: 'ODischargingTime-asc' },
            { label: '出料时间-倒序', value: 'ODischargingTime-desc' },
            { label: '强度等级-正序', value: 'OStrengthGrade-asc' },
            { label: '强度等级-倒序', value: 'OStrengthGrade-desc' },
            { label: '本盘是否超标-正序', value: 'OExcessState-asc' },
            { label: '本盘是否超标-倒序', value: 'OExcessState-desc' },
        ],
        LabAsphalt: [
            { label: '组织机构-正序', value: 'OOrganizationName-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '工程名称-正序', value: 'OEngineeringName-asc' },
            { label: '工程名称-倒序', value: 'OEngineeringName-desc' },
            { label: '施工地点-正序', value: 'OConstructionSite-asc' },
            { label: '施工地点-倒序', value: 'OConstructionSite-desc' },
            { label: '使用层位-正序', value: 'OLayerPosition-asc' },
            { label: '使用层位-倒序', value: 'OLayerPosition-desc' },
            { label: '出料时间-正序', value: 'ODischargingTime-asc' },
            { label: '出料时间-倒序', value: 'ODischargingTime-desc' },
            { label: '配合比编号-正序', value: 'OProportionIdGet-asc' },
            { label: '配合比编号-倒序', value: 'OProportionIdGet-desc' },
            { label: '超标等级-正序', value: 'OExcessState-asc' },
            { label: '超标等级-倒序', value: 'OExcessState-desc' },
        ],
        CementMixingStationsExceeded: [
            { label: '组织机构-正序', value: 'OOrganizationName-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '工程名称-正序', value: 'OProjectName-asc' },
            { label: '工程名称-倒序', value: 'OProjectName-desc' },
            { label: '试验类型-正序', value: 'OPouringPosition-asc' },
            { label: '试验类型-倒序', value: 'OPouringPosition-desc' },
            { label: '出料时间-正序', value: 'ODischargingTime-asc' },
            { label: '出料时间-倒序', value: 'ODischargingTime-desc' },
            { label: '强度等级-正序', value: 'OStrengthGrade-asc' },
            { label: '强度等级-倒序', value: 'OStrengthGrade-desc' },
            { label: '问题类别-正序', value: 'OMixPlatHandleTypeName-asc' },
            { label: '问题类别-倒序', value: 'OMixPlatHandleTypeName-desc' },
        ],
        LabAsphaltMixingStationExceeded: [
            { label: '组织机构-正序', value: 'OOrganizationName-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '工程名称-正序', value: 'OEngineeringName-asc' },
            { label: '工程名称-倒序', value: 'OEngineeringName-desc' },
            { label: '施工地点-正序', value: 'OConstructionSite-asc' },
            { label: '施工地点-倒序', value: 'OConstructionSite-desc' },
            { label: '使用层位-正序', value: 'OLayerPosition-asc' },
            { label: '使用层位-倒序', value: 'OLayerPosition-desc' },
            { label: '出料时间-正序', value: 'ODischargingTime-asc' },
            { label: '出料时间-倒序', value: 'ODischargingTime-desc' },
            { label: '配合比编号-正序', value: 'OProportionIdGet-asc' },
            { label: '配合比编号-倒序', value: 'OProportionIdGet-desc' },
            { label: '问题类别-正序', value: 'OMixPlatHandleTypeName-asc' },
            { label: '问题类别-倒序', value: 'OMixPlatHandleTypeName-desc' },
        ],
        BeamSeatBeamModel: [
            { label: '台座名称-正序', value: 'OBeamSeatName-asc' },
            { label: '台座名称-倒序', value: 'OBeamSeatName-desc' },
            { label: 'Bim模型构件编号-正序', value: 'OBeamSeatBeamModelName-asc' },
            { label: 'Bim模型构件编号-倒序', value: 'OBeamSeatBeamModelName-desc' },
        ],
        BeamProduceRecord: [
            { label: '组织机构-正序', value: 'OOrganizationUuid-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationName-desc' },
            { label: '桥名称-正序', value: 'OBridgeName-asc' },
            { label: '桥名称-倒序', value: 'OBridgeName-desc' },
            { label: '部位-正序', value: 'OPart-asc' },
            { label: '部位-倒序', value: 'OPart-desc' },
            { label: '梁类型-正序', value: 'OBeamTypeName-asc' },
            { label: '梁类型-倒序', value: 'OBeamTypeName-desc' },
            { label: '最新的施工工序-正序', value: 'OProcessName-asc' },
            { label: '最新的施工工序-倒序', value: 'OProcessName-desc' },
            { label: '最新的台座-正序', value: 'OBeamSeatName-asc' },
            { label: '最新的台座-倒序', value: 'OBeamSeatName-desc' },
            { label: '审核状态-正序', value: 'OAuditStatus-asc' },
            { label: '审核状态-倒序', value: 'OAuditStatus-desc' },
            { label: '生产日期-正序', value: 'OProduce-asc' },
            { label: '生产日期-倒序', value: 'OProduce-desc' },
        ],
        InfoManage: [
            { label: '组织机构-正序', value: 'OOrganizationSortId-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationSortId-desc' },
            { label: '主题名称-正序', value: 'OTableName-asc' },
            { label: '主题名称-倒序', value: 'OTableName-desc' },
            { label: '事件日期-正序', value: 'OEventDate-asc' },
            { label: '事件日期-倒序', value: 'OEventDate-desc' },
        ],
        FlowForm: [
            { label: '申请日期-正序', value: 'OEventDate-asc' },
            { label: '申请日期-倒序', value: 'OEventDate-desc' },
            { label: '标题-正序', value: 'OTableName-asc' },
            { label: '标题-倒序', value: 'OTableName-desc' },
            { label: '副标题-正序', value: 'OFullName-asc' },
            { label: '副标题-倒序', value: 'OFullName-desc' },
            { label: '最新状态-正序', value: 'OApprovalStatus-asc' },
            { label: '最新状态-倒序', value: 'OApprovalStatus-desc' },
        ],
        CostMonth: [
            { label: '组织机构-正序', value: 'OOrganizationSortId-asc' },
            { label: '组织机构-倒序', value: 'OOrganizationSortId-desc' },
            { label: '申报年月-正序', value: 'OEventDate-asc' },
            { label: '申报年月-倒序', value: 'OEventDate-desc' },
        ],
    }
    return (
        <Select
            popupMatchSelectWidth={true}
            placeholder="请选择"
            mode="multiple"
            options={SearchList[options]}
            value={value}
            onChange={onChange}
            filterOption={(input, option) => (option?.label ?? '').includes(input)}
            filterSort={(optionA, optionB) =>
                (optionA?.label ?? '').toLowerCase().localeCompare((optionB?.label ?? '').toLowerCase())
            }
        />
    )
}

const SelectModal = ({ value, onChange, options }) => {
    return (
        <Select
            options={Object.keys(options).map(item => ({ label: options[item], value: item }))}
            allowClear
            showSearch
            value={value}
            onChange={onChange}
            filterOption={(input, option) => (option?.label ?? '').includes(input)}
            filterSort={(optionA, optionB) =>
                (optionA?.label ?? '').toLowerCase().localeCompare((optionB?.label ?? '').toLowerCase())
            }
        />
    )
}

export const BuiltInData = {
    isYes: { 0: '否', 1: '是' },
    result: { 0: '合格', 1: '不合格', '': '未评定' },
    gradingresults: { 0: '未判定', 1: '合格', 2: '需要二次计算', 3: '不合格', 4: '数据异常' },
    CurrveType: { 1: '上限', 2: '下限', 3: '理论', 4: '实际' },
    CameraPTZ: { 0: '不可控', 1: '可控' },
    lorR: { 1: '进口方向左洞', 2: '进口方向右洞', 3: '出口方向左洞', 4: '出口方向右洞' },
    gender: { 0: '女', 1: '男' },
    Pass: { 0: '未通过', 1: '通过' },
    MenuType: { 0: '菜单', 1: '权限', 2: '节点菜单' },
    isEnabled: { 0: '关闭', 1: '开启' },
    locking: { 0: '锁定', 1: '未锁' },
    alarm: { 0: '正常', 1: '报警' },
    inOrOut: { 1: '进入', '-1': '外出' },
    carInOrOut: { 1: '进入', 0: '外出' },
    part: { 0: '无', 1: '左幅', 2: '右幅' },
    alarmlve: { 1: '初级', 2: '中级', 3: '⾼级' },
    uporDown: { 1: '上限报警', 2: '下限报警', 3: '最低限报警' },
    overTemperature: { 0: '正常', 1: '超温' },
    FileType: { 0: '未知', 1: '图像', 2: '视频', 3: 'pdf' },
    ReviewStatus: { 0: '未提交', 1: '待审核', 2: '合格', 3: '不合格' },
    RequestType: { GET: 'GET', POST: 'POST', PUT: 'PUT', DELETE: 'DELETE', PATCH: 'PATCH' },
    PushFlowConfigType: {
        '-2': '处理完毕',
        '-1': '等待推送',
        0: '立刻推送',
        1: '按时间限制推送',
    },
    PatrolStatus: {
        '-1': '下单未提交',
        0: '等待接受整改',
        1: '整改中',
        2: '已整改',
        3: '合格',
        4: '不合格',
    },
    InternetOfThingsType: {
        0: '压力机',
        1: '标养室',
        2: '马歇尔',
        3: '针入度',
        4: '软化点',
        5: '万能机水泥',
        6: '万能机钢筋',
        7: '压浆',
        8: '张拉',
        10: '环境监测设备',
        11: '安全帽',
        12: '水泥混凝土拌和站',
        13: '气体检测',
        14: '龙门吊',
        15: '钢筋保护层',
        16: '延度仪',
        17: '路强仪抗压试验',
        18: '路强仪cbr试验',
        19: '路强仪回弹试验',
        20: '回弹仪',
        21: '抗折抗压一体机',
        22: '沥青拌合站',
        23: 'AI预警',
    },
    OrderField: { asc: '正序', desc: '倒序' },
    excessState: { 0: '不超标', 1: '初级', 2: '中级', 3: '高级', 4: '异常' },
    layerPosition: { 1: '上面层', 2: '中面层', 3: '下面层' },
    earlyWarning: { 0: '正常', 1: '初级预警', 2: '中级预警', 3: '高级预警' },
    partText: { 无: '无', 左幅: '左幅', 右幅: '右幅' },
    componentType: { 1: '标签', 2: '梁' },
    auditStatus: { 0: '待审核', 1: '合格', 2: '不合格', '-1': '销毁' },
    camerafactory: { 1: '萤石', 2: '大华', 4: 'm3u8', 5: 'H5' },
    online: { 0: '离线', 1: '在线' },
    IsEnabled: { 0: '未启用', 1: '启用' },
    status: { 0: '未处理', 1: '已处理' },
    warning: { 0: '正常', 1: '报警' },
    SampleStatus: { 0: '未检测', 1: '检测中', 2: '已完成' },
    sceneType: { 1: 'Mars3D', 2: 'Forge', 3: '720全景' },
    matName: {
        sieve475: ' 4.75筛孔通过率',
        asphaltratio: ' 油石比',
        temperature: '出料温度',
        waterbinderratio: '水胶比',
        cement: '水泥用量',
        cement1: '水泥用量',
    },
    identity: {
        1: '工程管理公司',
        2: '片区',
        3: '项目公司',
        4: '项目',
        5: '子项目',
    },
    enterpriseFileCategory: {
        1: '母岩',
        2: '细集料',
        3: '粗集料',
        4: '基质沥青',
        5: '改性沥青',
        6: '环境稳定性',
        7: '荷载稳定性',
        8: '其他',
        9: '宣传片',
    },

    projectScheduleType: { 1: '准备阶段', 2: '建设阶段', 3: '运营阶段' },
    CurrentPeriod: { 准备阶段: '准备阶段', 建设阶段: '建设阶段', 运营阶段: '运营阶段' },
    projectType: {
        交通项目: '交通项目',
        市政项目: '市政项目',
        房建项目: '房建项目',
        开发区项目: '开发区项目',
        供热管网改造: '供热管网改造',
    },
    roadLevel: { 一级: '一级', 二级: '二级', 三级: '三级', 四级: '四级' },
    isYesText: { 是: '是', 否: '否' },
    isRenew: { 新建: '新建', 改建: '改建', 承继: '承继' },
    // 监理审核状态
    approvalStatus: {
        0: { text: '未提交', status: 'Default' },
        1: { text: '待审核', status: 'Processing' },
        2: { text: '合格', status: 'Success' },
        3: { text: '不合格', status: 'Error' },
    },
    SuperviseStatus: { 0: '未提交', 1: '待审核', 2: '合格', 3: '不合格' },
    riskStatus: { 0: '未提交', 1: '待审核', 2: '通过', 3: '不通过' },

    // 项目三级菜单
    ProjectMenuList: {
        Home001: '项目概况001',
        PPP001: 'PPP建设模式管理程序001',
        File001: '建设程序001',
        Operate001: '运营监管001',
        Operate002: '运营监管002',
        Progress001: '进度控制001',
        Security001: '安全监管001',
        Monitor001: '视频监控001',
        Fund001: '资金管理001',
    },

    HelmetTypeList: { 1: '安全帽', 2: '执法记录仪', 3: '中路执法记录仪' },
    projectStatus: { 0: '续建项目', 1: '新开工项目' },
    InfoFileType: { 0: '附件', 1: '富文本', 2: '附件和富文本', 3: '链接' },
    PushLogsStatus: { 0: '拉取', 1: '上传' },
    projectBuildingPaymentType: {
        1: '建筑安装工程费',
        2: '征地拆迁补偿费',
        3: '工程建设其他费用',
        4: '预备费',
        5: '贷款利息费用',
    },
    projectOperationPaymentType: {
        1: '养护费用',
        2: '偿还贷款费用',
        3: '管理费用',
        4: '税费',
        5: '股东分红',
    },
    scoreType: { 0: '第三方评分', 1: '项目评分' },
    lastPushInfo: { 0: '定时', 1: '手动' },
    questionType: { 0: '单选', 1: '多选' },
    engineeringGroupId: { 1: '1', 2: '2', 3: '3', 4: '4', 5: '5' },
    broadcastType: { 1: '语音广播', 2: '视频对讲', 3: '语音对讲' },
    flowType: { 1: '按表单中金额审批', 2: '按表单审批', 3: '按表单审批后下发' },
    approvalType: { 0: '发起', 1: '审批', 2: '结束' },
    approvalRule: { 0: '发起', 1: '直属领导', 2: '会签', 3: '任何一人审批' },
    FormApprovalStatus: { 0: '未提交', 2: '审批中', 3: '通过', 4: '未通过' },
    FormStatus: { 0: '未读', 1: '已读' },
    monthList: {
        1: ' 1月',
        2: ' 2月',
        3: ' 3月',
        4: ' 4月',
        5: ' 5月',
        6: ' 6月',
        7: ' 7月',
        8: ' 8月',
        9: ' 9月',
        10: '10月',
        11: '11月',
        12: '12月',
    },
    eventStatus: {
        1: '待完成',
        2: '完成',
        3: '无法完成',
    },
}

// 通用表单数据
export const commonTableList = {
    SearchSort: {
        dataIndex: 'SearchSort',
        title: '排序条件',
        valueType: 'hidden',
        sort: 1,
        width: 100,
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
        renderFormItem: ({ originProps }) => <SearchSort options={originProps.selectType} />,
    },
    uuid: {
        dataIndex: 'uuid',
        title: '编号',
        valueType: 'hidden',
        sort: 1,
        width: 100,
        hideInAdded: true,
        hideInTable: true,
        hideInSearch: true,
    },
    code: {
        dataIndex: 'code',
        title: '编码',
        valueType: 'input',
        width: 150,
        hideInSearch: true,
    },
    tableName: {
        dataIndex: 'tableName',
        title: '名称',
        valueType: 'input',
        ellipsis: true,
        rules: true,
        width: 150,
    },
    fullName: {
        dataIndex: 'fullName',
        title: '全名称',
        valueType: 'input',
        ellipsis: true,
        rules: true,
        width: 150,
    },
    organizationUuid: {
        dataIndex: 'organizationUuid',
        title: '组织机构',
        valueType: 'select',
        ellipsis: true,
        valueEnum: {},
        rules: true,
        width: hostname.includes('jszx') ? 240 : 160,
        renderFormItem: ({ originProps }) => <SelectModal options={originProps.valueEnum} />,
    },
    projectUuid: {
        dataIndex: 'projectUuid',
        title: '项目名称',
        valueType: 'select',
        ellipsis: true,
        valueEnum: {},
        rules: true,
        width: 160,
    },
    parentUuid: {
        dataIndex: 'parentUuid',
        title: '父节点',
        valueType: 'treeSelect',
        fieldProps: {
            options: [],
            fieldNames: { label: 'tableName', value: 'uuid' },
        },
        ellipsis: true,
        rules: true,
        width: 150,
    },
    isEnabled: {
        dataIndex: 'isEnabled',
        title: '启用状态',
        valueType: 'select',
        width: 100,
        valueEnum: BuiltInData.isEnabled,
        hideInSearch: true,
    },
    sortId: {
        dataIndex: 'sortId',
        title: '排序',
        width: 100,
        valueType: 'inputNumber',
        hideInSearch: true,
    },
    remark: {
        dataIndex: 'remark',
        title: '备注信息',
        width: 200,
        ellipsis: true,
        valueType: 'textarea',
        hideInSearch: true,
    },
    createUserName: {
        dataIndex: 'createUserName',
        title: '创建姓名',
        ellipsis: true,
        width: 100,
        hideInSearch: true,
        hideInAdded: true,
        hideInModify: true,
    },
    createTime: {
        dataIndex: 'createTime',
        title: '创建时间',
        ellipsis: true,
        width: 200,
        hideInSearch: true,
        hideInAdded: true,
        hideInModify: true,
    },
    updateUserName: {
        dataIndex: 'updateUserName',
        title: '更新姓名',
        ellipsis: true,
        width: 100,
        hideInSearch: true,
        hideInAdded: true,
        hideInModify: true,
    },
    updateTime: {
        dataIndex: 'updateTime',
        title: '更新时间',
        ellipsis: true,
        width: 200,
        hideInSearch: true,
        hideInAdded: true,
        hideInModify: true,
    },
    systemOperation: {
        dataIndex: 'systemOperation',
        title: '操作',
        fixed: 'right',
        hideInSearch: true,
        hideInAdded: true,
        hideInModify: true,
    },
    BeginStatDate: {
        dataIndex: 'BeginStatDate',
        title: '开始日期',
        valueType: 'date',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    EndStatDate: {
        dataIndex: 'EndStatDate',
        title: '结束日期',
        valueType: 'date',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    BeginAttendanceTime: {
        dataIndex: 'BeginStatDate',
        title: '开始日期',
        valueType: 'date',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    EndAttendanceTime: {
        dataIndex: 'EndStatDate',
        title: '结束日期',
        valueType: 'date',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    BeginEntryTime: {
        dataIndex: 'BeginEntryTime',
        title: '开始时间',
        valueType: 'dateTime',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    EndEntryTime: {
        dataIndex: 'EndEntryTime',
        title: '结束时间',
        valueType: 'dateTime',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    BeginProduce: {
        dataIndex: 'BeginProduce',
        title: '开始时间',
        valueType: 'dateTime',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    EndProduce: {
        dataIndex: 'EndProduce',
        title: '结束时间',
        valueType: 'dateTime',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    BeinVideoDate: {
        dataIndex: 'BeginProduce',
        title: '开始时间',
        valueType: 'dateTime',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    EndVideoDate: {
        dataIndex: 'EndProduce',
        title: '结束时间',
        valueType: 'dateTime',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    BeginAlarmTime: {
        dataIndex: 'BeginProduce',
        title: '开始时间',
        valueType: 'dateTime',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    EndAlarmTime: {
        dataIndex: 'EndProduce',
        title: '结束时间',
        valueType: 'dateTime',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    StartTime: {
        dataIndex: 'StartTime',
        title: '开始时间',
        valueType: 'dateTime',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    BeginTime: {
        dataIndex: 'BeginTime',
        title: '开始时间',
        valueType: 'dateTime',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    EndTime: {
        dataIndex: 'EndTime',
        title: '结束时间',
        valueType: 'dateTime',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },

    StartDate: {
        dataIndex: 'StartDate',
        title: '开始时间',
        valueType: 'date',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    EndDate: {
        dataIndex: 'EndDate',
        title: '结束时间',
        valueType: 'date',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    BeginSecurityDate: {
        dataIndex: 'beginSecurityDate',
        title: '开始日期',
        valueType: 'date',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
    EndSecurityDate: {
        dataIndex: 'endSecurityDate',
        title: '结束日期',
        valueType: 'date',
        hideInAdded: true,
        hideInModify: true,
        hideInTable: true,
    },
}
